﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.Sql;
using System.Data.SqlClient;
using DTO;

namespace DAO
{
    public class DangNhapDAO
    {
        DataProvider dp = new DataProvider();
        public DataTable DangNhap(TaiKhoanDTO tk)
        {
            SqlParameter[] param = {
                                     new SqlParameter("@TaiKhoan",tk.TaiKhoan ),
                                     new SqlParameter("@MatKhau",tk.MatKhau ),
                                    };
            return dp.SqlExcuteQuery("sp_DangNhap", param);

        }
    }
}
